<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商品列表页面</title>
</head>
<body>
<table border="1">
    <tr>
        <td>商品类别</td>
        <td>商品标题</td>
        <td>商品名称</td>
        <td>商家ID</td>
        <td>库存</td>
        <td>操作</td>
    </tr>
    <tr th:each="product: ${productList}">
        <td th:text="${product.merchantId}"></td>
        <td th:text="${product.productTitle}"></td>
        <td th:text="${product.productName}"></td>
        <td th:text="${product.merchantId}"></td>
        <td th:text="${product.stockNum}"></td>
        <td >
            <a href="#" th:href="@{/product/to/update(productId=${product.productId})}">修改</a>|
            <a  href="#" th:href="@{/product/remove/productId(productId=${product.productId})}">删除</a>|
            <a  href="#" th:href="@{/product/find/productId(productId=${product.productId})}">查看</a>
        </td>
    </tr>
</table>
</body>
</html>
